class EstadoTrainee < ActiveRecord::Base
	
	belongs_to :trainee 
	belongs_to :ocxtrainee
  validates_presence_of :descripcion
	
	set_table_name :estados_trainee
	
	# Busca todos los estados de los trainees, paginando el resultado.
	def self.search_all(search, page)
		paginate :per_page => 4, :page => page, :order => 'id'
	end
	
	
end
